import request from '/@/utils/request';

export function useSeesionApi() {
	return {
		// 查询在线用户列表
		list: (query: any) => {
			return request({
				url: '/system/user-session/page',
				method: 'get',
				params: query,
			});
		},

		// 强退用户
		forceLogout: (tokenId: string) => {
			return request({
				url: '/system/user-session/delete?id=' + tokenId,
				method: 'delete',
			});
		},
	};
}
